package gang.com.twoshopping.input;

import android.app.Application;

import com.facebook.drawee.backends.pipeline.Fresco;
import com.facebook.imagepipeline.core.ImagePipelineConfig;
import com.facebook.imagepipeline.decoder.SimpleProgressiveJpegConfig;

/**
 * Created by Administrator on 2017/5/29.
 */

public class App extends Application{
    @Override
    public void onCreate() {
        super.onCreate();
        //渐进式图片加载的配置
        ImagePipelineConfig config = ImagePipelineConfig.newBuilder(this)
                .setProgressiveJpegConfig(new SimpleProgressiveJpegConfig())
                .build();
        Fresco.initialize(this);
    }
}
